﻿using MiniErp.Model.Entities;
using MiniErp.Model.Templates;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.DBService.Service.IService
{
    public interface ILoginService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="id"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public Task<MessageTemplate<UserInfoEntity>> Login(int id, string password);

        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="userinfo">用户注册</param>
        /// <returns></returns>
        public Task<MessageTemplate<int>> Register(UserInfoEntity userinfo);

    }
}
